public class While {
    public static void main(String[] args) {
        int i = 0;
 /*       while (i <= 10) {
            if (i % 2 == 0) {
                System.out.println(i + "是偶数");
            } else {
                System.out.println(i + "是奇数");
            }
            i++;
            if(i==6){
                System.out.println(i);
                break;
            }
        }*/

        int flag = 0;
        while (i <= 50) {
            if (i % 7 == 0) {
                flag++;
                System.out.println(i);
                if (flag == 5) {
                    break;
                }
            }
            i++;
        }
    }
}
